package house.entity;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import java.util.List;

@Entity
public class HouseDetail extends BasicEntity{

    @OneToMany
    private List<BasicDetail> details;
    @OneToOne
    private House house;

    public List<BasicDetail> getDetails() {
        return details;
    }

    public void setDetails(List<BasicDetail> details) {
        this.details = details;
    }

    public House getHouse() {
        return house;
    }

    public void setHouse(House house) {
        this.house = house;
    }
}
